FROM 192.168.5.101:8083/centos7/jdk8

MAINTAINER wangyj<wangyj@soonfor.com>

VOLUME /tmp

ADD target/sf-config-server-1.1.0-SNAPSHOT.jar /service.jar

RUN sh -c 'touch /service.jar'

ENV JAVA_OPTS="-Xms256m -Xmx512m"

ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /service.jar"]